package com.smartfactory.sail.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 产品工序表
 * </p>
 *
 * @author 王巨壁
 * @since 2019-08-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("item_workingProcedure")
@ApiModel(value = "ItemWorkingprocedure对象", description = "产品工序表")
public class ItemWorkingprocedure implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "产品id")
    @TableField("itemId")
    private Long itemId;

    @ApiModelProperty(value = "工艺名称")
    @TableField("workName")
    private String workName;

    @ApiModelProperty(value = "时产能")
    @TableField("hourlyCapacity")
    private Integer hourlyCapacity;

    @ApiModelProperty(value = "标准")
    private String standard;

    @ApiModelProperty(value = "重点检验标准")
    @TableField("importantStandard")
    private String importantStandard;

    @ApiModelProperty(value = "频次")
    private String frequency;

    @ApiModelProperty(value = "检验方法")
    private String method;

    @ApiModelProperty(value = "检验工具")
    private String tools;

    @ApiModelProperty(value = "部门Id")
    private Long dept;

    @ApiModelProperty(value = "工序平均用时")
    @TableField("averageTime")
    private Long averageTime;

    @ApiModelProperty(value = "工序执行次数")
    @TableField("procedureNumber")
    private Long procedureNumber;

    @ApiModelProperty(value = "工序执行总时间")
    @TableField("totalTime")
    private Long totalTime;

    @ApiModelProperty(value = "工序排序从1开始")
    private Integer sort;

    @ApiModelProperty(value = "创建人")
    @TableField("createUser")
    private String createUser;

    @ApiModelProperty(value = "创建时间yyyy-MM-dd HH:mm:ss")
    @TableField("createTime")
    private String createTime;

    @ApiModelProperty(value = "修改人")
    @TableField("updateUser")
    private String updateUser;

    @ApiModelProperty(value = "更新时间yyyy-MM-dd HH:mm:ss")
    @TableField("updateTime")
    private String updateTime;


}
